﻿@{
    ViewBag.Title = Local("Roles.PageTitle");
}

@model IEnumerable<Role>


@if (Model != null)
{
    <div class="box">
        <table cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <td>@Resources.GetString("Role.RoleName")</td>
                    <td>@Resources.GetString("Role.IsHidden")</td>
                    <td>@Resources.GetString("Role.RoleLevel")</td>
                    <td>@Resources.GetString("Role.Description")</td>
                    <td>@Resources.GetString("Role.SortOrder")</td>
                    <td class="action">@Local("LogInfo.Action")</td>
                </tr>
            </thead>
            <tbody class="hoverline">
            @foreach (var role in Model)
            {
                <tr>
                    <td>@role.RoleName</td>
                    <td>@CPHelper.ShowBoolean(role.IsHidden)</td>
                    <td>@Resources.GetString(role.RoleLevel)</td>
                    <td>@role.Description</td>
                    <td>@role.SortOrder</td>
                    <td class="action"><a href="javascript:void(0);" onclick="return openModal('@CUrls.DialogRoleView?id=@role.RoleID', 400);">@Local("Role.Edit")</a></td>
                </tr>
            }
            </tbody>
        </table>
    </div>
}